/*
 * @Author: wwl 2967796480@qq.com
 * @Date: 2023-09-14 13:43:37
 * @LastEditors: wwl 2967796480@qq.com
 * @LastEditTime: 2023-09-14 14:40:34
 * @FilePath: \ConstantBlueCloud_WEB_USER - 副本\src\api\videoSurveillance.ts
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import Request from '@/libs/request'

/**添加摄像头 */
export const addCamera = (data: {
  cameraName: string
  cameraUrl: string
  appKey: string
  appSecret: string
  deviceSerial: string
  channelNo: string
  userId: string | number
}) => Request.get<null>('/user/add/cameraData', data)

/**查询摄像头列表 */
export const selectCameras = (data: { userId: string | number }) =>
  Request.get<Camera.Info[]>('/user/select/cameraDataList', data)

/**修改摄像头信息 */
export const editCamera = (data: {
  cameraName: string
  cameraUrl: string
  appKey: string
  appSecret: string
  cameraId: number
  deviceSerial: string
  channelNo: string
}) => Request.get<null>('/user/edit/cameraDataName', data)

/**删除摄像头 */
export const delCamera = (data: { cameraId: number }) =>
  Request.get<null>('/user/delete/cameraData', data)
